import request from '@/utils/request'

// 查询题目列表
export function listQuestion(query) {
    return request({
        url: '/business/Question/list',
        method: 'get',
        params: query
    })
}

// 查询所有题目列表
export function allListQuestion() {
    return request({
        url: '/business/Question/allList',
    })
}

// 查询题目详细
export function getQuestion(questionId) {
    return request({
        url: '/business/Question/' + questionId,
        method: 'get'
    })
}

// 新增题目
export function addQuestion(data) {
    return request({
        url: '/business/Question',
        method: 'post',
        data: data
    })
}

// 修改题目
export function updateQuestion(data) {
    return request({
        url: '/business/Question',
        method: 'put',
        data: data
    })
}

// 删除题目
export function delQuestion(questionId) {
    return request({
        url: '/business/Question/' + questionId,
        method: 'delete'
    })
}
